var _serviceURL = '/69mark/web';// 必须设置

function delfuncitem(thisid){
    layer.confirm('确定提交？',{btn:['确定','取消']},function(){
    	var describe = "";
    	var vType = $('input:radio[name="huiyuan"]:checked').val();
    	if (vType == 3) {
    		describe = $("#describe").val();
        	if (describe == '') {
        		alert("拒绝原因必须填写");
        		return;
        	}
    	}
    	
        $.ajax({
            type:'POST',
            url:_serviceURL+"/toUpdateVerify.do",
            data:'vType='+vType+"&id="+thisid+"&describe="+describe,
            dataType : 'json',
            success:function(data){
                if(data==1){
                    layer.msg('保存成功',{
                        time: 2000,
                    });
                    window.location.href = _serviceURL+"/toVerifyIndex.do";
                }else{
                    layer.msg('保存失败',{
                        time: 2000,
                    });
                }
            }
        });
    });
}

